package com.test.mvcframework.pojo.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author felix
 */
public class MethodHandlerAdapter implements HandlerAdapter {
    @Override
    public boolean supports(Handler handler) {
        return handler instanceof MethodHandler;
    }

    @Override
    public Object handle(HttpServletRequest request, HttpServletResponse response,
            MethodHandler methodHandler) throws Exception {
        return methodHandler.handle(request, response);
    }
}
